/* 
 * File:   Xservice.h
 * Author: minaev
 *
 * Created on 2 Октябрь 2013 г., 14:31
 */

#ifndef XSERVICE_H
#define	XSERVICE_H

#include "Xmsg.h"

class Xservice {
public:
    Xservice();
    Xservice(const Xservice& orig);
    virtual ~Xservice();
    static char* getEnv(char** env,const char* nameEnv);
    static int strlen(const char* str);
    static char* getCurTime();
    static char* catStr(int n,int nodel,...);
    static char* toStr(char** strs);
    static char* copyStr(const char* str);
    static int createFile(const char* filename);
    static int backupFile(const char* src,const char* dst);
    static char* itos(int val);
    static void printArrayToHexStr(const char* arr, int len);
    static int charToHex(const char ch);
private:

};

#endif	/* XSERVICE_H */

